package com.dlc.shop.live.common.param;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 直播消息组成
 * 1. 弹幕消息 2.商品讲解状态变更(主播)
 * @author TRACK
 */
@Data
public class LiveMessageInfo {

    @Schema(description = "消息类型 0.心跳 1.弹幕消息 2.商品讲解状态变更")
    private Integer msgType;

    @Schema(description = "消息内容")
    private String content;

    @Schema(description = "商品id")
    @NotNull(message = "商品id不能为空")
    private Long prodId;

    @Schema(description = "讲解状态 0未讲解 1讲解中")
    @NotNull(message = "讲解状态不能为空")
    private Integer explainStatus;

    @Schema(description = "直播间id")
    @NotNull(message = "直播间id不能为空")
    private Long roomId;

    @Schema(description = "活动价(秒杀、团购活动的商品价格)")
    private Double activityPrice;
}
